.modalBox{:id => "add_sla_template_modalBox"}
  = form_tag sla_template_create_url, :id => "new-sla_template-form", :remote => true do
    .modalBox-title
      = t('sla_templates.add_sla')
    .modalBox-flash
    .modalBox-content
      %table
        %tbody
          %tr
            %td
              =sprite_tag("help", :alt => "?", :class=> "help", :title => t('sla_templates.name_help_html'))
              = label_tag "name", t('sla_templates.name') + ":"
            %td
              = text_field_tag :name, @name, :size => 30, :required => "required", :autofocus => "autofocus",
                :class=>"name" ,:placeholder => t('sla_templates.name_placeholder'), :pattern => "[a-zA-Z0-9-_]+", :title => t('sla_templates.name_title_html')
          %tr
            %td
              = sprite_tag("help", :alt => "?", :class=> "help", :title => t('sla_templates.instances_num_help_html'))
              = label_tag "instances", t('sla_templates.instances_num') + ":"
            %td
              = check_box_tag :instances,true,@instances
          %tr
            %td
              = sprite_tag("help", :alt => "?", :class=> "help", :title => t('sla_templates.memory_size_help_html'))
              = label_tag "memsize", t('sla_templates.memory_size') + ":"
            %td
              = check_box_tag :memsize,true,@memsize
          %tr
            %td
              = sprite_tag("help", :alt => "?", :class=> "help", :title => t('sla_templates.disk_size_help_html'))
              = label_tag "disksize", t('sla_templates.disk_size') + ":"
            %td
              = check_box_tag :disksize,true,@disksize


          %tr
            %td
              = sprite_tag("help", :alt => "?", :class=> "help", :title => t('sla_templates.framework_help_html'))
              = label_tag "framework", t('sla_templates.framework') + ":"
            %td
              = check_box_tag :framework,true,@framework

          %tr
            %td
              = sprite_tag("help", :alt => "?", :class=> "help", :title => t('sla_templates.runtime_help_html'))
              = label_tag "runtime", t('sla_templates.runtime') + ":"
            %td
              = check_box_tag :runtime,true,@runtime
          %tr
            %td
              = sprite_tag("help", :alt => "?", :class=> "help", :title => t('sla_templates.service_help_html'))
              = label_tag "service", t('sla_templates.service') + ":"
            %td
              = check_box_tag :service,true,@service
          %tr
            %td
              = sprite_tag("help", :alt => "?", :class=> "help", :title => t('sla_templates.app_starttime_help_html'))
              = label_tag "app_starttime", t('sla_templates.app_starttime') + ":"
            %td
              = check_box_tag :app_starttime,true,@app_starttime
          %tr
            %td
              = sprite_tag("help", :alt => "?", :class=> "help", :title => t('sla_templates.app_stoptime_help_html'))
              = label_tag "app_stoptime", t('sla_templates.app_stoptime') + ":"
            %td
              = check_box_tag :app_stoptime,true,@app_stoptime
          %tr
            %td
              = sprite_tag("help", :alt => "?", :class=> "help", :title => t('sla_templates.price_help_html'))
              = label_tag "price", t('sla_templates.price') + ":"
            %td
              = check_box_tag :price,true,@price
          %tr
            %td
              = sprite_tag("help", :alt => "?", :class=> "help", :title => t('sla_templates.fine_help_html'))
              = label_tag "fine", t('sla_templates.fine') + ":"
            %td
              = check_box_tag :fine,true,@fine


    .modalBox-submit= submit_tag t('sla_templates.add_sla')